package com.example.dto;

import com.example.utils.DateUtils;
import com.example.validator.group.AddGroup;
import com.example.validator.group.DefaultGroup;
import com.example.validator.group.UpdateGroup;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户DTO
 */
@Data
@Schema(description = "修改密码")
@JsonIgnoreProperties(ignoreUnknown = true) // 标注 UserDetail 类以忽略未知属性
public class PasswordDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @NotNull(message="{id.require}")
    private Long id;



    @Schema(description = "原始密码")
    @NotNull(message="{id.require}")
    private String oldPassword;


    @Schema(description = "新密码")
    @NotNull(message="{id.require}")
    private String newPassword;
} 